<?php
namespace App\Modules\User\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class UserAddress extends Model
{
    use SoftDeletes;

    protected $fillable = [
        'user_id',
        'title',
        'name',
        'mobile',
        "province",
        "city",
        "district",
        "detail",
        'is_default'
    ];

    public function getAddressString()
    {
        return $this->province.$this->city.$this->district.$this->detail;
    }
}
